package org.uim.cricket.db.impl;

public class ExistCountry extends DBBooleanResultQuery {

	private String cName = null;
	
	public ExistCountry(String theCountryNameStr) {
		this.cName = theCountryNameStr;
	}
	
	public boolean exists() {
		if (cName == null || cName.length() == 0) return false;
		
		try {
			
			return super.result("CALL sp_Exist_Country('" + cName + "');"); 
			
		} catch (Exception e) {
			e.printStackTrace();
		} 
		
		return false;
	}
	
}
